# Contributor:
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sdparm
pkgver=1.12
pkgrel=0
pkgdesc="SCSI device parameter modification tool"
url="http://sg.danny.cz/sg/sdparm.html"
arch="all"
license="BSD-2-Clause"
makedepends="linux-headers"
subpackages="$pkgname-doc"
source="http://sg.danny.cz/sg/p/sdparm-$pkgver.tgz"

build() {
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="00e2775c290c6db3a02780dd3eefa58ac40e1df79a7f19f80a9d497c019a9a4a9a16fb2726f48e7083d0104a8e74326e683c3f5f44c7d1f591a0f607e10493b1  sdparm-1.12.tgz"
